package bean;

public class MatHangTheoSize extends Master{

    private int matHangID;
    private int sizeID;
    private int soluong;
    private Size size;
    private MatHang matHang;

    public MatHangTheoSize() {
    }

    public int getMatHangID() {
        return matHangID;
    }

    public void setMatHangID(int matHangID) {
        this.matHangID = matHangID;
    }

    public int getSizeID() {
        return sizeID;
    }

    public void setSizeID(int sizeID) {
        this.sizeID = sizeID;
    }

    public int getSoluong() {
        return soluong;
    }

    public void setSoluong(int soluong) {
        this.soluong = soluong;
    }

    public Size getSize() {
        return size;
    }

    public void setSize(Size size) {
        this.size = size;
    }

    public MatHang getMatHang() {
        return matHang;
    }

    public void setMatHang(MatHang matHang) {
        this.matHang = matHang;
    }

    public boolean equals(Object other) {
        if ((this == other)) {
            return true;
        }
        if ((other == null)) {
            return false;
        }
        if (!(other instanceof MatHangTheoSize)) {
            return false;
        }
        MatHangTheoSize castOther = (MatHangTheoSize) other;

        return (this.getMatHangID() == castOther.getMatHangID())
                && (this.getSizeID() == castOther.getSizeID());
    }
}
